package com.example.project.manageController;

import com.example.project.dao.AdminDAO;
import com.example.project.dao.ParkingDAO;
import com.example.project.pojo.Parking;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping("manage")
public class ManageViewPrivateParkingController {
    @RequestMapping("showPrivateParking")
    public String showPrivateParking(Model model){

        ParkingDAO parkingDAO=new ParkingDAO();
        List<Parking> List = parkingDAO.showPriParking();
        model.addAttribute("List",List);
        return "manage/viewPrivateParking";
    }

}
